package com.chang.common.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @program: erp-api
 * @description:
 * @author: chang
 * @create: 2025-02-14 14h
 **/

/**
 *
 * @param <T>
 */
@ApiModel("分页结果")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageBean<T> {

    @ApiModelProperty("当前页数")
    int page;

    @ApiModelProperty("每页记录数")
    int pageSize;

    @ApiModelProperty("总记录数")
    long total;

    T data;//分页结果

}
